<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <!--! 响应式布局  必写 -->
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>响应式图片</title>

  <!-- ! bootstrap4基本所需css/js引入 -->
  <link rel="stylesheet" href="./css/bootstrap.css">
  <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
  <script src="./js/jquery-3.5.1.min.js"></script>
  <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
  <script src="./js/bootstrap.js"></script>


  <!-- <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.css" rel="stylesheet"> -->
  <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
  <!-- <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script> -->
  <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
  <!-- <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.2/js/bootstrap.js"></script> -->
  <style>

  </style>
</head>

<body>

  <!-- m-auto ====>margin:auto   w-50====> width:50%  bg-danger===>backgroaund:pink-->
  <div id="carouselExampleControls" class="carousel slide  w-50 m-auto bg-danger" data-ride="carousel"
    style=" height: 500px;">
    <div class="carousel-inner">
      <div class="carousel-item active " style="height: 500px;">
        <img src="./images/1.png" class="d-block w-100 h-100" alt="...">
      </div>
      <div class="carousel-item  " style="height: 500px;">
        <img src="./images/2.png" class="d-block w-100 h-100" alt="...">
      </div>
      <div class="carousel-item  " style="height: 500px;">
        <img src="./images/logo.gif" class="d-block w-100 h-100" alt="...">
      </div>
    </div>
    <a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
      <span style="background-color: yellow;" class="carousel-control-prev-icon" aria-hidden="true"></span>
      <span class="sr-only">Previous</span>
    </a>
    <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
      <span style="background-color: yellow;" class="carousel-control-next-icon" aria-hidden="true"></span>
      <span class="sr-only">Next</span>
    </a>
    <ol class="carousel-indicators">
      <li style="background-color: black;" data-target="#carouselExampleControls" data-slide-to="0" class="active">
      </li>
      <li style="background-color: black;" data-target="#carouselExampleControls" data-slide-to="1"></li>
      <li style="background-color: black;" data-target="#carouselExampleControls" data-slide-to="2"></li>
    </ol>
  </div>

</body>

</html>